package com.delay.queue.delayedqueue.timewheel;

import io.netty.util.HashedWheelTimer;
import io.netty.util.Timeout;
import io.netty.util.TimerTask;

import java.util.concurrent.TimeUnit;

/**
 * @author gxing
 * @desc
 * @date 2021/3/25
 */
public class NettyHashTimerWheel {

    public static void main(String[] args) {
        HashedWheelTimer wheelTimer = new HashedWheelTimer(1, TimeUnit.SECONDS, 16);
        wheelTimer.newTimeout(timeout -> {

        }, 500, TimeUnit.MILLISECONDS);
    }
}
